﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DependencyLocate.Abstract;
using DependencyLocate.Imp;

namespace Dependency
{
    class Program
    {
        static void Main(string[] args)
        {
            //IFactory factory = FactoryContainer.Factory;
            //IWindown window = factory.MakeWin();
            //Console.WriteLine("创建 " + window.ShowInfo());
            //IButton button = factory.MakeButton();
            
            MacButton instance = (MacButton)Activator.CreateInstance(typeof(MacButton));
            instance.ShowInfo();
            Console.WriteLine("创建 " + instance.ShowInfo());
            string mb = DependencyService.Imp.ReflectionFactory.MakeButton().ShowInfo();
            string wb = ReflectionFactory.MakeWindow().ShowInfo();
            Console.WriteLine("mb:"+mb);
            Console.WriteLine("wb:"+wb);
            Console.WriteLine("你好");
            Console.ReadLine();

        }
    }
}
